package com.imc.platform.base.lesson.dao.mapper;

import com.imc.api.order.pojo.Lesson;
import com.imc.api.order.pojo.LessonAtt;
import com.imc.api.order.pojo.LessonSchedule;
import com.imc.platform.base.category.pojo.Category;
import com.imc.platform.base.user.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.access.method.P;

import java.util.List;
import java.util.Map;

/**
 * Created by tanweiping on 2018/10/10.
 */
@Mapper
public interface BackLessonMapper {

    List<Map<String,Object>> queryLessonM(@Param("parms") Map<String,Object>parms);

    List<User> queryTeacherList();

    List<LessonSchedule> queryScheduleList(String lessonId);

    List<User>queryListBySelect(String search);

    void addLesson(Lesson lesson);

    List<Category> queryCatAll(String catType);

    Lesson queryLessonDetByLessonId(String lessonId);

    void updateLesson(Lesson lesson);

    void addSchedule(LessonSchedule lessonSchedule);

    void updateSchedule(LessonSchedule lessonSchedule);

    void delScheduleById(String id);

    LessonSchedule queryScheduleDetByScheduleId(String scheduleId);

    void addLessonCat(Lesson lesson);

    void delLessonById(String id);

    void addLessonAtt(LessonAtt lessonAtt);

    void delLessonAtt(@Param("id") String id,@Param("imgUrl") String imgUrl);
    List<LessonAtt> queryLessonAttList(String lessonId);

    List<Map<String,Object>>queryLessonChartList(@Param("parms") Map<String,Object>parms);
}
